<ion-view view-title="待入库采购单">

    <ion-content class="wrap-light">
    	<section class="row text-center icon-legend">
    		<div class="col" ng-repeat="su in stateUi">
    			<i class="icon button-icon {{su.icon}} {{su.color}}"></i>
    			<div>{{su.text}}</div>
    		</div>
    		
    	</section>
		<ion-list ng-repeat="date in orderList">
			<ion-item class="item item-divider">
			    {{date.divider}} 
			</ion-item>
			<ion-item class="item item-icon-left item-icon-right" href="#purchase/order-{{order._id}}" ng-repeat="order in orderList[$index].list">
				<i class="icon {{stateUi[order.state].icon}} {{stateUi[order.state].color}}"></i>
				单号: {{order.order_no}}
				<i class="icon dark2 ion-ios-arrow-right"></i>
			</ion-item>
		</ion-list>
	</ion-content>
</ion-view>
